<?php
/* @var $this HomeController */
?>

<!-- <h3>
	<b>Good</b> Solutions for You
</h3> -->

<?php foreach ($posts as $p) {?>

<div class="indent-top1 margin-bot">
	<div class="figure img-indent">
		<img src="<?php echo $p->imageUrl; ?>" alt="<?php echo $p->title; ?>">
	</div>
	<div class="extra-wrap indent-top2">
		<h5>
			<b><?php echo $p->title; ?> </b>
		</h5>
		<p>
			<?php echo WebUtils::shorten($p->content, 400); ?>
		</p>
		<div class="buttons">
			<a href="<?php echo Yii::app()->createUrl("items/display/post",array("id"=>$p->id))?>"
				class="button-1"><?php echo Lang::getResource("readmore"); ?></a>
		</div>
	</div>
	<div class="clear"></div>
</div>

<?php }?>


